New variable shell-command-guess-dired-optional (bug#18132)
authorJuri Linkov <juri@linkov.net>
Fri, 24 May 2024 17:48:42 +0000 (20:48 +0300)
committerJuri Linkov <juri@linkov.net>
Fri, 24 May 2024 17:48:42 +0000 (20:48 +0300)
commit74f15ad72d937b309dafecba872bccd1a880181e
tree665efe071c28c3c07f11cfb5949603573a3d93d9
parent6d856acf17761552c5136833b0614a453364a0c5
New variable shell-command-guess-dired-optional (bug#18132)

* doc/emacs/dired.texi (Shell Command Guessing):
Add dired-guess-shell-alist-optional.

* lisp/dired.el (dired-guess-shell-alist-user):
* lisp/dired-aux.el (dired-do-shell-command):
Add dired-guess-shell-alist-optional to docstring.
(dired-guess-shell-alist-default): Move media commands to
'dired-guess-shell-alist-optional'.
(dired-guess-shell-alist-optional): New variable.
(dired-guess-default): Add 'dired-guess-shell-alist-optional'
to the end after 'dired-guess-shell-alist-user'
and 'dired-guess-shell-alist-default'.
(shell-command-guess-functions): Add more options.
(shell-command-guess-dired): Remove function.
(shell-command-guess-dired-user)
(shell-command-guess-dired-default)
(shell-command-guess-dired-optional): New functions.
doc/emacs/dired.texi
etc/NEWS
lisp/dired-aux.el
lisp/dired.el